﻿var show = function(message, target){
	var MSG1 = new CLASS_MSN_MESSAGE("aa",200,120,"短消息提示：","您的消息 ",message, target);  
	MSG1.rect(null,null,null,screen.height-50); 
	MSG1.speed    = 30;
	MSG1.step    = 5; 
	MSG1.show();
}
show("欢迎登录！","parent.rentFrame()");
/*if(Risen.Auth['WDX_ESTATE_OFFICE_OFFICERENTOUT']){
	if(Risen.Rent.records[0].PREWARNCOUNT > 0 || Risen.Lease.records[0].PREWARNCOUNT > 0 || Risen.Rentals.records[0].PREWARNCOUNT > 0){
		var msg0 = '出租办公用房合同预警';
		var msg1 = '租入办公用房合同预警';
		var msg2 = '出租办公用房租金预警';
		var tgt0 = 'parent.rentFrame()';
		var tgt1 = 'parent.reaseFrame()';
		var tgt2 =  'parent.rentalsFrame()';
		
		var message = new Array();
		var target = new Array();
		
		//alert(Risen.Auth['WDX_ESTATE_OFFICE_RENTALSPREWARN']+ '  '+Risen.Auth['WDX_ESTATE_OFFICE_LEASEPREWARN']+ '  '+Risen.Auth['WDX_ESTATE_OFFICE_RENTPREWARN']);
		if(Risen.Rent.records[0].PREWARNCOUNT > 0 && Risen.Auth['WDX_ESTATE_OFFICE_RENTPREWARN']){
			message.push(msg0);
			target.push(tgt0);
		}
		if(Risen.Lease.records[0].PREWARNCOUNT > 0 && Risen.Auth['WDX_ESTATE_OFFICE_LEASEPREWARN']){
			message.push('</BR>'+msg1);
			target.push(tgt1);
		}
		if(Risen.Rentals.records[0].PREWARNCOUNT > 0 && Risen.Auth['WDX_ESTATE_OFFICE_RENTALSPREWARN']){
			message.push('</BR>'+msg2);
			target.push(tgt2);
		}
		show(message, target);
		var message = ['出租办公用房合同预警' , '<BR/>出租办公用房合同预警', '<BR/>出租办公用房租金预警'];
		var target = ['parent.rentFrame()', 'parent.reaseFrame()', 'parent.rentalsFrame()'];
		//这里可以确定的必有一个条件满足才能运行到这里,故下面的判定情况就少了两个都不满足的情况
		if(Risen.Rent.records[0].PREWARNCOUNT > 0 && Risen.Lease.records[0].PREWARNCOUNT == 0){
			message = message[0];
			target = target[0];
			show(message, target);
		}else if(Risen.Lease.records[0].PREWARNCOUNT > 0 && Risen.Rent.records[0].PREWARNCOUNT == 0){
			message = message[1];
			target = target[1];
			show(message, target);
		}else if (Risen.Lease.records[0].PREWARNCOUNT > 0 && Risen.Rent.records[0].PREWARNCOUNT  > 0){
			show(message, target);
		}
	}
}*/